//
//  UIView+Extension.h
//  FrameWork
//
//  Created by 李刚 on 17/5/9.
//  Copyright (c) 2017年 李刚. All rights reserved.
//


typedef enum {
    
    LeftToRight = 0,
    TopToBottom,
    
} ColorDirection;


#import <UIKit/UIKit.h>

@interface UIView (Extension)


/** X */
@property (nonatomic, assign) CGFloat x;

/** Y */
@property (nonatomic, assign) CGFloat y;

/** Width */
@property (nonatomic, assign) CGFloat width;

/** Height */
@property (nonatomic, assign) CGFloat height;

/** right */
@property (nonatomic, assign) CGFloat right;

/** left */
@property (nonatomic, assign) CGFloat left;

/** bottom */
@property (nonatomic, assign) CGFloat bottom;

/** top */
@property (nonatomic, assign) CGFloat top;

/** size */
@property (nonatomic, assign) CGSize size;

/** centerX */
@property (nonatomic, assign) CGFloat centerX;

/** centerY */
@property (nonatomic, assign) CGFloat centerY;

/** tag */
//@property (nonatomic, copy) NSString *tagStr;


/**  设置渐变色*/
- (void)setGradientColors:(NSArray *)colors direction:(ColorDirection)direction;

/**  移除所以子控件*/
- (void)removeAllSubviews;

@end
